package com.zsy.dao;

import com.zsy.pojo.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;


public interface DishFlavorDao {

     void save(@Param("lists") List<DishFlavor> lists);

     @Select("SELECT * FROM dish_flavor where dish_id=#{id}")
     List<DishFlavor> findById(Long id);

     @Delete("delete from dish_flavor where dish_id=#{dishId}")
     void deleteById(Long id);

}
